import React from 'react'
import { reduxForm } from 'redux-form'





const CommonForm = ({ formTarget, handleSubmit, children }) => {
  return (
    <form onSubmit={handleSubmit}>
      <div>
        {children}
      </div>
    </form>
  )
}

export default reduxForm(({ formTarget }) => ({ form: formTarget }))(CommonForm)

